package com.baidu.echarts;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

public class Feature {

    @JsonProperty(index = 1)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private MarkItem mark;

    @JsonProperty(index = 2)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private DataView dataView;

    @JsonProperty(index = 3)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private MagicType magicType;

    @JsonProperty(index = 10)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private MarkItem saveAsImag;

    @JsonProperty(index = 11)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private MarkItem restore;


    public MarkItem getMark() {
        return mark;
    }

    public Feature setMark(MarkItem mark) {
        this.mark = mark;
        return this;
    }

    public MarkItem getRestore() {
        return restore;
    }

    public Feature setRestore(MarkItem restore) {
        this.restore = restore;
        return this;
    }

    public MarkItem getSaveAsImag() {
        return saveAsImag;
    }

    public Feature setSaveAsImag(MarkItem saveAsImag) {
        this.saveAsImag = saveAsImag;
        return this;
    }

    public DataView getDataView() {
        return dataView;
    }

    public Feature setDataView(DataView dataView) {
        this.dataView = dataView;
        return this;
    }
    public DataView buildDataView(){
        this.dataView= new DataView();
        return this.dataView;
    }

    public MagicType getMagicType() {
        return magicType;
    }

    public Feature setMagicType(MagicType magicType) {
        this.magicType = magicType;
        return this;
    }

    public MagicType buildMagicType(){
        this.magicType = new MagicType();
        return this.magicType;
    }
}
